<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $configs['websiteName'] . '——家教报名' ?></title>
<link type="text/css" rel="stylesheet" href="<?php echo CSS_DIR ?>/base.css" />
<link type="text/css" rel="stylesheet" href="<?php echo CSS_DIR ?>/default.css" />
<link type="text/css" rel="stylesheet" href="<?php echo CSS_DIR ?>/index.css" />
<script src="<?php echo JS_DIR ?>/jquery.js" type="text/javascript"></script>
<script src="<?php echo JS_DIR ?>/formValidator_lcg.js" type="text/javascript"></script>
<script src="<?php echo JS_DIR ?>/formValidatorRegex.js" type="text/javascript"></script>
<script type="text/javascript">
function Reset_ImgSize(obj, MaxW, MaxH) {
    if (obj != null) imageObject = obj;
    var state=imageObject.readyState;
    var oldImage = new Image();
    oldImage.src = imageObject.src;
    var dW=oldImage.width; var dH=oldImage.height;
    if(dW>MaxW || dH>MaxH) {
        a=dW/MaxW; b=dH/MaxH;
        if(b>a) a=b;
        dW=dW/a; dH=dH/a;
    }
    if(dW > 0 && dH > 0)
        imageObject.width=dW;imageObject.height=dH;
    if(state!='complete' || imageObject.width>MaxW || imageObject.height>MaxH) {
        setTimeout("ResizeImage(null,"+MaxW+","+MaxH+")",40);
    }
}
</script>
<style>
.formTb {
	width:100%;
	border:1px solid #85D2EF;
	border-collapse:collapse;
}
.formTb tr {text-align:left;}
.formTb td {
	border:1px solid #D5F1F9;
	padding:3px;
	line-height:25px;
	height:25px;
}
.formTb .t {
	text-align:center;
}
</style>
</head>

<body>
<?php require($header) ?>

<div class="container">
	<div id="content">
		<div class="subContent" style="width:90%;margin:10px;">
			<form name="reg" action="<?php echo url('teacher', 'register') ?>"  method="post">
				<?php echo $user['user_id'] ?>
				<table class="formTb" style="width:99%" >
					<tr>
						<td width="15%" class="t">姓名</td>
						<td width="20%"><?php echo $user['trueName'] ?></td>
						<td width="15%" class="t">性别</td>
						<td width="30%"><?php echo $user['sex'] ?></td>
						<td rowspan="6" colspan="2" width="20%" class="t">
							<img src="<?php echo $user['pic'] ?>" onload="Reset_ImgSize(this, 150, 200);" />
						</td>
					</tr>
					<tr>
						<td class="t">籍贯</td>
						<td><?php echo $user['province'] ?></td>
						<td class="t">院、系、专业</td>
						<td><?php echo $user['college'] ?><?php echo $user['major'] ?></td>
					</tr>
					<tr>
						<td class="t">学号</td>
						<td><?php echo $user['num'] ?></td>
						<td class="t">是否贫困生</td>
						<td ><?php echo $user['poor'] ?></td>
					</tr>
					<tr>
						<td class="t">联系电话</td>
						<td colspan="3"><?php echo $user['tel'] ?></td>
					</tr>
					<tr>
						<td class="t">是否做过家教</td>
						<td class="t"><?php echo $form['experience'] ?></td>
						<td class="t">教过的科目</td>
						<td><?php echo $form['taught'] ?></td>
					</tr>
					<tr>
						<td class="t">层次</td>
						<td class="t"><?php echo $user['userType'] ?></td>
						<td class="t">年平均绩点</td>
						<td><?php echo $form['score'] ?></td>
					</tr>
					<tr>
						<td class="t">普通话是否流利</td>
						<td class="t"><?php echo $form['mandarin'] ?></td>
						<td class="t">特长学科<br />（不超过三门）</td>
						<td colspan="3"><?php echo $form['advantage'] ?></td>
					</tr>
					<tr>
						<td class="t">能否用粤语交流</td>
						<td class="t"><?php echo $form['cantonese'] ?></td>
						<td class="t">英语水平</td>
						<td colspan="3"><?php echo $form['englishLevel'] ?></td>
					</tr>
					<tr>
						<td>希望辅导的学生类型（可多选）</td>
						<td colspan="5"><?php echo $form['stuType'] ?></td>
					</tr>
					<tr>
						<td class="t">其他技能</td>
						<td><?php echo $form['skill'] ?></td>
						<td class="t">特殊才艺</td>
						<td colspan="3"><?php echo $form['special'] ?></td>
					</tr>
					<tr>
					<tr>
						<td class="t">家教地点要求</td>
						<td colspan="5"><?php echo $form['order'] ?></td>
					</tr>
					<tr>
						<td class="t">备注</td>
						<td colspan="5"><?php echo $form['memo'] ?></td>
					</tr>
					<tr>
						<td colspan="8" align="center">
							<input type="submit" name="s" value="提交" />
							<input type="reset" name="r" value="重写" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</div>
<?php require($footer) ?>
</body>
</html>
